﻿using UnityEngine;
using System.Collections;

public class End : MonoBehaviour
{
	public float delay = 5;

	private float time;

	void Start()
	{
		time = 0;
	}

	void Update ()
	{
		time += Time.deltaTime;

		if(time >= delay)
		{
			Debug.Log("Should trigger Credits");
			Application.LoadLevel("Credits");
		}
	}
}
